package com.y.entity.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;


/**
 * 数据表格封装实体
 * @author: Yjh
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class DataTable<T> {

    private Integer code;

    private String msg;

    private Integer count;

    private List<T>   data;

    public DataTable(Integer count, List<T>  data) {
        this.code = 0;
        this.msg = "";
        this.count = count;
        this.data = data;
    }
}
